package com.mine.staticproxy;

public class EatableTimeProxy<T extends Eatable> implements Eatable{
    private T t;

    public EatableTimeProxy(T t) {
        this.t = t;
    }


    @Override
    public void eat() {
        long start = System.currentTimeMillis();
        t.eat();
        System.out.println(System.currentTimeMillis() - start);
    }
}
